RCG B2C Commerce Experience API - Implementation Template

(0 reviews)

Data mappings

This document provides information generated from the DataWeave scripts included in the project, such as function definitions, variable definitions, and data mapping tables.

ModuleDescription
map-b2c-customer-to-cimB2C Customer Mapping
map-b2c-order-to-cimB2C Order Mapping
map-inventory-query-responseInventory Response Mapping

map-b2c-customer-to-cim

B2C Customer Mapping

Source: ./src/main/resources/dwl/map-b2c-customer-to-cim.dwl

Mapping Tables

Maps B2C customer profiles to CIM Customer format

CIMB2CDescription
idmasterIdThe id of the customer role
partyRoleTypeCustomerThe type of party role
party.idnullThe id of the individual party
party.partyTypeIndividualThe type of party
party.personNamefirstName lastNameThe full name of the individual
party.firstNamefirstNameThe first name of the individual
party.lastNamelastNameThe last name of the individual
party.contactPoints.idnullHardcoded Id to null
party.contactPoints.nameaddressIdThe individual Address Id
party.contactPoints.contactPointTypeContactPointAddressHardcoded contactPointType to ContactPointAddress
party.contactPoints.activeFromDateTodays dateIndividual active from date to todays date
party.contactPoints.addressLine1address1The Address of individual
party.contactPoints.addressLine2address2The Address of individual
party.contactPoints.cityNamecityThe city name of individual
party.contactPoints.stateProvinceNamestateThe state name of individual
party.contactPoints.countryNamecountryThe country name of individual
party.contactPoints.postalCodeTextpostalCodeThe postalCode name of individual
party.contactPoints.idnullHardcoded Id to null
party.contactPoints.nameaddressIdThe customer Address Id
party.contactPoints.contactPointTypeContactPointEmailHardcoded contactPointType to ContactPointEmail
party.contactPoints.activeFromDateTodays dateIndividual active from date to todays date
party.contactPoints.emailAddressemailThe email address of individual
party.contactPoints.idnullHardcoded Id to null
party.contactPoints.nameaddressIdThe customer Address Id
party.contactPoints.contactPointTypeContactPointPhoneHardcoded contactPointType to ContactPointPhone
party.contactPoints.activeFromDateTodays dateIndividual active from date to todays date
party.contactPoints.telephoneNumbercontactPhoneThe phone number of the individual
customerNumbercustomerNumberThe Individual number of the individual
customerStatusACTIVEThe status of the customer
externalIds.idnullHardcoded Id to null
externalIds.externalIdcustomerNumberThe external Id of the SALESFORCE_B2C
externalIds.externalIdTypeSALESFORCE_B2CThe externalIdtype of SALESFORCE_B2C
externalIds.statusVALIDThe status of the customer
auditInfo.createdBycreatedByThe Individual created by user
auditInfo.updatedByupdatedByThe individual last updated user
auditInfo.updatedDateupdatedDateThe last Modified date of the individual
auditInfo.createdDatecreatedDateThe creation Date of the individual
auditInfo.isDeletedfalseIndicates whether or not the entity has been deleted defaulted to false

(back to top)

map-b2c-order-to-cim

B2C Order Mapping

Source: ./src/main/resources/dwl/map-b2c-order-to-cim.dwl

Mapping Tables

Maps B2C sales orders to CIM format

CIMB2CDescription
idmasterIdThe id of the order
nameSalesOrderThe name of the order
orderNumberorderNumberThe order number
requestedStartDatecreatedDateThe order created date
salesOrderTypeORDERThe order type
salesOrderStatusorderStatusThe order status
orderCurrencyUSDThe currency of this order
orderCustomer.idnullHardcoded Id to null
orderCustomer.partyRoleTypeCustomerThe type of party role
orderCustomer.party.idnullThe id of the individual party
orderCustomer.party.partyTypeIndividualThe type of party
orderCustomer.party.personNamecustomerNameThe full name of the individual
orderCustomer.party.contactPoints.idnullHardcoded Id to null
orderCustomer.party.contactPoints.nameBillingAddressHardcoded as Billing Address
orderCustomer.party.contactPoints.contactPointTypeContactPointAddressHardcoded contactPointType to ContactPointAddress
orderCustomer.party.contactPoints.activeFromDateTodays dateIndividual active from date to todays date
orderCustomer.party.contactPoints.addressLine1billingAddress1The Address of individual
orderCustomer.party.contactPoints.addressLine2billingAddress2The Address of individual
orderCustomer.party.contactPoints.cityNamebillingCityThe city name of individual
orderCustomer.party.contactPoints.stateProvinceNamebillingRegionThe state name of individual
orderCustomer.party.contactPoints.countryNamebillingCountryThe country name of individual
orderCustomer.party.contactPoints.postalCodeTextbillingPostalCodeThe postalCode name of individual
orderCustomer.party.contactPoints.idnullHardcoded Id to null
orderCustomer.party.contactPoints.nameShippingAddressHardcoded as Shipping Address
orderCustomer.party.contactPoints.contactPointTypeContactPointAddressHardcoded contactPointType to ContactPointAddress
orderCustomer.party.contactPoints.activeFromDateTodays dateIndividual active from date to todays date
orderCustomer.party.contactPoints.addressLine1shippingAddress1The Address of individual
orderCustomer.party.contactPoints.addressLine2shippingAddress2The Address of individual
orderCustomer.party.contactPoints.cityNameshippingCityThe city name of individual
orderCustomer.party.contactPoints.stateProvinceNameshippingRegionThe state name of individual
orderCustomer.party.contactPoints.countryNameshippingCountryThe country name of individual
orderCustomer.party.contactPoints.postalCodeTextshippingPostalCodeThe postalCode name of individual
orderCustomer.party.contactPoints.idnullHardcoded Id to null
orderCustomer.party.contactPoints.nameaddressIdThe address Id
orderCustomer.party.contactPoints.contactPointTypeContactPointPhoneHardcoded contactPointType to ContactPointPhone
orderCustomer.party.contactPoints.activeFromDateTodays dateIndividual active from date to todays date
orderCustomer.party.contactPoints.telephoneNumbercontactPhoneThe phone number of the individual
orderCustomer.customerNumbercustomerNumberThe Individual number of the individual
orderCustomer.customerStatusACTIVEThe status of the customer
orderProducts.adjustedGrossPriceproductLineItem.adjustedGrossPriceGross price for this product item
orderProducts.adjustedNetPriceproductLineItem.adjustedNetPriceNet price for this product item
orderProducts.adjustedPriceproductLineItem.adjustedPriceFinal price for this product item
orderProducts.adjustedTaxproductLineItem.adjustedTaxFinal tax amount for this product item
orderProducts.isBonusProductproductLineItem.bonusProductLineItemIndicates whether this is a bonus item or not
orderProducts.isBundledProductproductLineItem.bundledProductLineItemIndicates whether this product is bundled with another or not
orderProducts.isGiftproductLineItem.giftIndicates whether this item is a gift or not
orderProducts.giftMessageproductLineItem.giftMessageMessage to include on a gift item
orderProducts.positionIndexproductLineItem.positionPosition of this product item in the list
orderProducts.productIdproductLineItem.productIDThe B2C product identifier for this item
orderProducts.productNameproductLineItem.productNameThe name of the product
orderProducts.quantityUnitproductLineItem.quanity.unitThe unit of measure for the quantity value
orderProducts.quantityValueproductLineItem.quantityValueThe actual quantity
externalIds.idnullHardcoded Id to null
externalIds.externalIdcustomerNumberThe external Id of the SALESFORCE_B2C
externalIds.externalIdTypeSALESFORCE_B2CThe externalIdtype of SALESFORCE_B2C
externalIds.statusVALIDThe status of the customer
auditInfo.createdBycreatedByThe Individual created by user
auditInfo.updatedByupdatedByThe individual last updated user
auditInfo.updatedDateupdatedDateThe last Modified date of the individual
auditInfo.createdDatecreatedDateThe creation Date of the individual
auditInfo.isDeletedfalseIndicates whether or not the entity has been deleted defaulted to false

(back to top)

map-inventory-query-response

Inventory Response Mapping

Source: ./src/main/resources/dwl/map-inventory-query-response.dwl

Mapping Tables

Maps CIM inventory response to B2C

B2CCIMDescription
productIdproductIdThe ID of the Product
productNameproductNameName of the Product
availableStockquantityInStockQuantity available for the Product
storeIdlocationIdThe ID of the store where the Product is located

(back to top)


Reviews

TypeTemplate
OrganizationMulesoft Inc.
Published by
MuleSoft Solutions
Published onOct 18, 2022
Asset overview

Asset versions for 2.4.x

Asset versions
VersionActions
2.4.6